import { Song, SongUrl } from '@/types/common-types'

export function generateList(songs: Song[], urls: SongUrl[]): Song[] {
  const songList: Song[] = []
  songs.forEach((song: Song) => {
    const url = urls.find((item) => song.id === item.id)!.url
    songList.push({
      ...song,
      url
    })
  })
  return songList
}
